package com.sinoglobal.ningxia.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import android.widget.RadioButton;
import android.widget.RadioGroup;

import com.sinoglobal.ningxia.R;

/**
 * Created by XINDZ on 2017/2/16.
 * 功能:
 */

public class ProgramFragment extends Fragment {
    private int channelId;
    /**
     * 星期
     */
    private ListView lvWeek;
    //天
    private ListView lvDay;
    private RadioButton rb_program_monday;
    private RadioButton rb_program_tuesday;
    private RadioButton rb_program_wednesday;
    private RadioButton rb_program_thursday;
    private RadioButton rb_program_friday;
    private RadioButton rb_program_staturday;
    private RadioButton rb_program_sunday;
    private RadioGroup radioGroup_week;


    /**
     * @param channelId
     * @return
     * @author xindz
     * @createdate 2017年2月16日10:04:45
     * @Description: 节目单具体频道的fragment
     */
    public static ProgramFragment newInstance(int channelId) {

        ProgramFragment programFragment = new ProgramFragment();
        return programFragment;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.frag_program, null);

        lvDay = (ListView) view.findViewById(R.id.lv_program_day);
        radioGroup_week = (RadioGroup) view.findViewById(R.id.rg_program_week);
        rb_program_monday = (RadioButton) view.findViewById(R.id.rb_program_monday);
        rb_program_tuesday = (RadioButton) view.findViewById(R.id.rb_program_tuesday);
        rb_program_wednesday = (RadioButton) view.findViewById(R.id.rb_program_wednesday);
        rb_program_thursday = (RadioButton) view.findViewById(R.id.rb_program_thursday);
        rb_program_friday = (RadioButton) view.findViewById(R.id.rb_program_friday);
        rb_program_staturday = (RadioButton) view.findViewById(R.id.rb_program_staturday);
        rb_program_sunday = (RadioButton) view.findViewById(R.id.rb_program_sunday);

        return view;
    }


}
